package router

import (
	"api/config"
	"api/internal/handler"
	"api/pkg"
	"github.com/gin-gonic/gin"
)

func SetVehicleRouter(c *gin.RouterGroup) {
	vehicleRouter := c.Group("/vehicle")
	{
		vehicleRouter.PUT("/update", handler.VehicleUpdate)
		vehicleRouter.GET("/show", handler.VehicleShow)
		vehicleRouter.Use(pkg.JWTAuth(config.DataConfig.Jwt.Key))
		vehicleRouter.POST("/create", handler.VehicleCreate)
	}
}
